﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FormCoursePopup.aspx.cs" Inherits="Truextend.Training.Layouts.Truextend.Training.Popup.FormCoursePopup" DynamicMasterPageFile="~masterurl/default.master" %>

<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">

    <SharePoint:ScriptLink ID="showDailog" runat="server" Name="sp.js" Localizable="false" LoadAfterUI="true" /> 
    <script type="text/javascript">
        function CancelDialog() {
            SP.UI.ModalDialog.commonModalDialogClose(SP.UI.DialogResult.cancel, 'cancel');
        } 
    </script>

</asp:Content>

<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <asp:Label ID="lblMessage" runat="server" /> 
    <table id="maintable" border="0" cellspacing="0" cellpadding="0" class="ms-propertysheet" width="100%">
        <tr id="FormSection">
            <td>
                <p><b>Name</b>&nbsp;<span class="ms-error">*</span></p>
                <SharePoint:EncodedLiteral ID="EncodedLiteral1" runat="server" text="Define name of the course to be created." EncodeMethod='HtmlEncode'/>
            </td>
            <td class="ms-authoringcontrols">
                <table border="0" cellspacing="1">
                    <tr>
                        <td class="ms-authoringcontrols" colspan="2" nowrap="nowrap">
                            <SharePoint:EncodedLiteral ID="EncodedLiteral7" runat="server" text="Name will be used as unique key" EncodeMethod='HtmlEncode'/>:
                            <font size="3">&#160;</font><br />
                        </td>
                    </tr>
                    <tr>
                        <td class="ms-authoringcontrols" dir="ltr">
                            <table>
                                <tr>
                                    <td class="ms-authoringcontrols" colspan="2" nowrap="nowrap" >
                                        <SharePoint:InputFormTextBox title="Enter name" class="ms-input" ID="TxtName" Columns="35" Runat="server" maxlength="255" size="60" width="100%" /> 
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td class="ms-authoringcontrols" colspan="2" nowrap="nowrap">
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="TxtName" runat="server" ErrorMessage="Name must be provided"/>
                        </td>
                    </tr>
                    <tr>
                </table>
            </td>
        </tr>
        <tr id="Tr1">
            <td>
                <p><b>Category</b></p>
                <SharePoint:EncodedLiteral ID="EncodedLiteral2" runat="server" text="Define category of the course to be created." EncodeMethod='HtmlEncode'/>
            </td>
            <td class="ms-authoringcontrols">
                <table border="0" cellspacing="1">
                    <tr>
                        <td class="ms-authoringcontrols" dir="ltr">
                            <table>
                                <tr>
                                    <td class="ms-authoringcontrols" nowrap="nowrap" >
                                        <asp:DropDownList title="Enter category" ID="DdCategory" runat="server">
                                            <asp:ListItem Value="DB" Text="[DB] Data Base"></asp:ListItem>
                                            <asp:ListItem Value="INF" Text="[INF] Informatic"></asp:ListItem>
                                            <asp:ListItem Value="QA" Text="[QA] Quality Assurance"></asp:ListItem>
                                            <asp:ListItem Value="TEL" Text="[TEL] Telecomunication"></asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr id="Tr2">
            <td>
                <p><b>Directed To</b></p>
                <SharePoint:EncodedLiteral ID="EncodedLiteral3" runat="server" text="Define the public that the course is directed." EncodeMethod='HtmlEncode'/>
            </td>
            <td class="ms-authoringcontrols">
                <table border="0" cellspacing="1">
                    <tr>
                        <td class="ms-authoringcontrols" dir="ltr">
                            <table>
                                <tr>
                                    <td class="ms-authoringcontrols" nowrap="nowrap" >
                                        <SharePoint:InputFormTextBox title="Enter public" class="ms-input" ID="TxtDirectedTo" Columns="35" Runat="server" maxlength="255" size="60" width="100%" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr id="Tr3">
            <td>
                <p><b>Prerequisites</b></p>
                <SharePoint:EncodedLiteral ID="EncodedLiteral5" runat="server" text="Define prerequisites of the course to be created." EncodeMethod='HtmlEncode'/>
            </td>
            <td class="ms-authoringcontrols">
                <table border="0" cellspacing="1">
                    <tr>
                        <td class="ms-authoringcontrols" dir="ltr">
                            <table>
                                <tr>
                                    <td class="ms-authoringcontrols" nowrap="nowrap" >
                                        <SharePoint:InputFormTextBox title="Enter prerequisites" class="ms-input" ID="TxtPrerequisites" Columns="35" Runat="server" maxlength="255" size="60" width="100%" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr id="Tr4">
            <td>
                <p><b>Contents</b></p>
                <SharePoint:EncodedLiteral ID="EncodedLiteral4" runat="server" text="Define contents of the course to be created." EncodeMethod='HtmlEncode'/>
            </td>
            <td class="ms-authoringcontrols">
                <table border="0" cellspacing="1">
                    <tr>
                        <td class="ms-authoringcontrols" dir="ltr">
                            <table>
                                <tr>
                                    <td class="ms-authoringcontrols" >
                                        <SharePoint:InputFormTextBox title="Enter contents" class="ms-input" ID="TxtContents" Columns="35" Runat="server" maxlength="500" size="60" width="100%" RichText="True" TextMode="MultiLine" Rows="5" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td colspan="2" align="right">
                <asp:PlaceHolder ID="Placeholder1" runat="server">
                    <asp:Button ID="BtnSave" CssClass="ms-ButtonHeightWidth" runat="server" Text="Save" OnClick="btnSave_Click" />
                    <asp:Button ID="BtnCancel" CssClass="ms-ButtonHeightWidth" runat="server" Text="Cancel" OnClientClick="javascript:CancelDialog()" />
                </asp:PlaceHolder>
            </td>
        </tr>
    </table> 
</asp:Content>

<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
    <asp:Literal ID="lblTitle" runat="server" />
</asp:Content>
